/* 路由路径配置 */

// 引入路由组件
import TabBar from '@/components/tab-bar'
import TopBar from '@/components/top-bar'
import Movie from '@/views/movie'
import Cinema from '@/views/cinema'
import Information from '@/views/information'
import Mine from '@/views/mine'

// 定义路径数组
const routes = [
  {
    path: '/',
    redirect: '/movie',
  },
  {
    path: '/movie',
    // component: Movie,
    components: {
      header: TopBar,
      default: Movie,
      footer: TabBar,
    },
    meta: {
      inTabBar: true,
      title: '电影',
      icon: '&#xe696;',
    },
  },
  {
    path: '/cinema',
    // component: Cinema,
    components: {
      header: TopBar,
      default: Cinema,
      footer: TabBar,
    },
    meta: {
      inTabBar: true,
      title: '影院',
      icon: '&#xe69c;',
    },
  },
  {
    path: '/information',
    // component: Information,
    components: {
      header: TopBar,
      default: Information,
      footer: TabBar,
    },
    meta: {
      inTabBar: true,
      title: '资讯',
      icon: '&#xe6a0;',
    },
  },
  {
    path: '/mine',
    // component: Mine,
    components: {
      header: TopBar,
      default: Mine,
      footer: TabBar,
    },
    meta: {
      inTabBar: true,
      title: '我的',
      icon: '&#xe66a;',
    },
  },
]
export default routes
